$(document).ready(function () {
    //**/
    //$('html').addClass('springs');
    //var springMsg = '';
    //springMsg += '<div class="springwrapper"><div class="springmsg"><span class="closemsg"></span><div class="springnote">';
    //springMsg += '<h2>蓉记鲜鲜鲜春节公告</h2>';
    //springMsg += '<p>亲爱的鲜粉：</p>';
    //springMsg += '<p>春节将至，诚祝各位羊年吉祥，阖家欢乐！</p>';
    //springMsg += '<p>蓉记鲜鲜鲜将持续接受在线订单，2月16日起暂停物流配送。2月26日起按订单顺序发货。</p>';
    //springMsg += '<p>全国统一客服电话：4008804365 24小时为您提供年节咨询服务！</p>';
    //springMsg += '<p style="text-align: right">蓉记鲜鲜鲜<br>2015.02.15</p>';
    //springMsg += '</div></div></div>';

    //$('body').append(springMsg);
    //$('.closemsg').on('click', function () {
    //    $('.springwrapper').fadeOut();
    //    $('html').removeClass('springs');
    //})
    //**/
    $('.flexslider').flexslider({
        animation: "slide",
        directionNav: false,
        start: function (slider) {
            $('#flexslider-loading').fadeOut();
        }
    });

    var oneYearE = $('.oneYearItem');

    oneYearE.find('img').zoomImgRollover({
        percent: 10,
        duration: 300
    });

    oneYearE.each(function (i) {
        if ((i + 1) % 5 == 0) {
            oneYearE.eq(i).addClass('oneYearItemLast');
        }
    });

    app.Spin('flexslider-loading');

});
